import { baseRequest } from "@/utils/request";
const request = (url, ...arg) => baseRequest(`/admin/v1/user/${url}`, ...arg);

export default {
  // 获取人员分页
  page(data) {
    return request("page", data);
  },
  // 提交表单 edit为true时为编辑，默认为新增
  login(data) {
    return request("login", data);
  },
  save(data) {
    return request("save", data);
  },
  updatePwd(data) {
    return request("updatePwd", data);
  },
  delete(data) {
    return request("delete", data);
  },
  queryMenuTree(data) {
    return request("queryMenuTree", data);
  },
  queryPermissions(data) {
    return request("queryPermissions", data);
  },
  queryIsUpdatePwd(data) {
    return request("queryIsUpdatePwd", data);
  },
  queryManagerSchoolList(data) {
    return request("queryManagerSchoolList", data);
  },
  getVerify(data) {
    return request("getVerify", data, "get");
  },
  queryLoginUserInfo(data) {
    return request("queryLoginUserInfo", data);
  },
};
